package com.cy.pj.sys.service;

import com.cy.pj.common.vo.Node;
import com.cy.pj.sys.pojo.SysMenu;
import com.cy.pj.sys.pojo.SysUserMenu;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 张琪
 * @date 2020/11/14
 * @describe
 */
@Service
public interface SysMenuService {

    List<Map<String, Object>> findObjects();

    List<Node> findZtreeMenuNodes();

    int saveObject(SysMenu sysMenu);

    int updateObject(SysMenu sysMenu);

    int deleteObject(Integer id);

    List<SysUserMenu> findUserMenusByUserId(Integer id);

}
